import './Start.less';

function Start(props) {
  const {
    node
  } = props;

  const data = node.getData();
  if (!data.properties) data.properties = {};

  return (
    <div className="start-node">
      <div className="node-header">
          开始节点
      </div>

      <div className="node-config">
        <div>
          <label>操作类型：</label>
          <span>{data.properties.eventType}</span>
        </div>

        <div>
          <label>操作对象：</label>
          <span>{data.properties.eventObject}</span>
        </div>
      </div>
    </div>
  );
}

export default Start;
